package com.TeacherInfoServer.pojo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("postdoctoral_management")
public class PostDoctoral implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;
    @TableField("teacher_id")
    @ExcelProperty(value = "教师工号",index = 0)
    private String teacherId;
    @TableField("research_unit")
    @ExcelProperty(value = "博士后研究单位",index = 1)
    private String researchUnit;
    @TableField("entry_date")
    @ExcelProperty(value = "进站时间",index = 2)
    private String entryDate;
    @TableField("exit_date")
    @ExcelProperty(value = "出站时间",index = 3)
    private String exitDate;
    @Version
    @TableField("version")
    @ExcelIgnore
    private Integer version;
    @TableField(exist = false)
    private Teacher teacher;
}
